# $Id: PKGBUILD 86022 2013-03-11 10:39:31Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: William Rea <sillywilly@gmail.com>

pkgname=gresolver
pkgver=0.0.5
pkgrel=9
pkgdesc="A graphical frontend for dig"
arch=('any')
license=('GPL')
url="http://jodrell.net/projects/gresolver"
depends=('gtk2-perl' 'perl-locale-gettext' 'perl-net-ipv6addr' 'ldns' 'glade-perl' 'perl-net-ipv4addr')
source=(http://arch.p5n.pp.ru/~sergej/dl/2012/gresolver-$pkgver.tar.gz
	desktop.patch
	ldns.patch)
md5sums=('092adb0206423118357a93ce3f14afb1'
         'db1e194234b66a6ab7cc7d0757471516'
         '20c87c1098944cdf4146a478532c732d')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -p1 -i ../desktop.patch
  patch -p1 -i ../ldns.patch
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make prefix=$pkgdir/usr install
}
